package com.lijian.service;

import com.lijian.base.Result;
import com.lijian.model.SysUser;

import java.util.List;

public interface UserService {
    Result<SysUser> findAllUsersByPage(Integer offset, Integer limit);

    Result<SysUser> save(SysUser sysUser, Integer roleId);

    SysUser findUserById(Long id);

    Result<SysUser> update(SysUser sysUser, Integer roleId);

    Result deleteById(Integer id);

    Result<SysUser> findUserBySearch(String username, Integer offset, Integer limit);

    Result deleteUsersByCheck(String ids);

    Result<SysUser> changePassword(String username, String oldPassword, String newPassword);
}
